<?php

declare(strict_types=1);

namespace Api\Request\v1;

use Mine\MineApiFormRequest;

class RobotMsgRequest extends MineApiFormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function sendMsgRules(): array
    {
        return [
            'robot_id' => 'required',
            'to_id' => 'required',
            'content' => 'required',
        ];
    }

    public function messages(): array
    {
        return [
            'robot_id.required' => '企微ID不能为空',
            'to_id.required' => '接收人ID不能为空',
            'content.required' => '发送内容不能为空'
        ];
    }
}